package org.example.entity;

public class Book {
    private Integer id;
    private String bookName;//书名
    private String writer;//作者
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", writer='" + writer + '\'' +
                ", state=" + state +
                '}';
    }

    public Book() {
    }

    public Book(Integer id, String bookName, String writer, Integer state) {
        this.id = id;
        this.bookName = bookName;
        this.writer = writer;
        this.state = state;
    }
}
